<input type="hidden" id="pagination-controller" value="usuario" />
<input type="hidden" id="pagination-action" value="listar" />
<?php if (count( $paginator )): ?>
    <table class="table table-striped">
        <thead>
            <tr>
                <th>
                    Nome
                </th>
                <th>
                    Email
                </th>
                <th>
                    Telefone
                </th>
                <th>
                    CPF
                </th>
                <th>
                    Ações
                </th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($paginator as $value): ?>
                <tr>
                    <td><?php echo $value['nome']; ?></td>
                    <td><?php echo $value['email']; ?></td>
                    <td><?php echo $value['telefone']; ?></td>
                    <td><?php echo $value['cpf']; ?></td>
                    <td>
                        <a class="button" href="/editar?id=<?php echo $value['id']; ?>">Editar</a>&nbsp;
                        <a class="button" href="javascript:void(0);" onclick="IndexController.excluir(<?php echo $value['id']; ?>);">Excluir</a>
                    
                    </td>
                </tr>
            <?php endforeach; ?>
        </tbody>

    </table>
    <?php echo $this->paginationControl( $paginator, 'Sliding', 'layout/pagination.phtml' ); ?>
<?php endif; ?>